package net.ericaro.neojavagen.classes ;
import net.ericaro.neojavagen.classes.TypedMethodDeclarator;
import net.ericaro.neojavagen.classes.Throws;
import net.ericaro.neojavagen.classes.MethodModifiers;
import net.ericaro.neojavagen.classes.TypeParameters;
import net.ericaro.neojavagen.packages.JavadocComment;
import net.ericaro.neojavagen.interfaces.Annotations ;

/**
* *<pre> MethodHeader :
    JavadocComment? Annotations? MethodModifiers? TypeParameters? TypedMethodDeclarator Throws?
</pre>
*/
public class MethodHeader   {

JavadocComment javadoccomment;
Annotations annotations;
MethodModifiers methodmodifiers;
TypeParameters typeparameters;
TypedMethodDeclarator typedmethoddeclarator;
Throws athrows ;

public MethodHeader( JavadocComment javadoccomment, Annotations annotations, MethodModifiers methodmodifiers, TypeParameters typeparameters, TypedMethodDeclarator typedmethoddeclarator, Throws athrows ){
	this.javadoccomment = javadoccomment; this.annotations = annotations; this.methodmodifiers = methodmodifiers; this.typeparameters = typeparameters; this.typedmethoddeclarator = typedmethoddeclarator; this.athrows = athrows ;
	}public MethodHeader( TypedMethodDeclarator typedmethoddeclarator ){
this.typedmethoddeclarator = typedmethoddeclarator ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	if (this.javadoccomment !=null ) stringbuilder.append( this.javadoccomment ).append(" ");
if (this.annotations !=null ) stringbuilder.append( this.annotations ).append(" ");
if (this.methodmodifiers !=null ) stringbuilder.append( this.methodmodifiers ).append(" ");
if (this.typeparameters !=null ) stringbuilder.append( this.typeparameters ).append(" ");
stringbuilder.append( this.typedmethoddeclarator ).append(" ");
if (this.athrows !=null ) stringbuilder.append( this.athrows ).append(" ") ;
	return stringbuilder.toString();
}

}
